package ms.common.token;

import org.apache.commons.lang.RandomStringUtils;

/**
* @author 作者 刘天宇
* @version 创建时间：2018年2月1日 下午10:46:12
* 功能 用来获取微信用户信息
*/
public class SessionKey {
	private String third_session;
	private String session_key;//sessionKey
	private String openid;
	private String unionid;
	private long create_time;
	
	public SessionKey(String session_key, String openid, String unionid) {
		this.third_session = RandomStringUtils.randomAlphanumeric(64);//UUID.randomUUID().toString().replaceAll("-", "");
		this.session_key = session_key;
		this.openid = openid;
		this.unionid = unionid;
		this.create_time = System.currentTimeMillis();
	}
	
	public String getThird_session() {
		return third_session;
	}

	public String getSession_key() {
		return session_key;
	}
	public void setSession_key(String session_key) {
		this.session_key = session_key;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	public long getCreate_time() {
		return create_time;
	}
}
